<?php

class teammodel extends model{
function getteam($id){
	$sql2= "SELECT  team.team ,count(tid) as num  FROM `player`,team where player.tid = team.id and player.tid='{$id}'";
	return $this->db->qurey($sql2);
	
}
function getplayer($id){
	$sql3="SELECT player FROM `player` where tid='{$id}'";
	return $this->db->qurey($sql3);
}
}

?>